package com.lbw.brige;

/**
 * @author lbw
 * @version 1.0
 * @date 2021/6/3 14:31
 */
public class Client {

    public static void main(String[] args) {
        // 获取折叠式手机 (样式 + 品牌)
        Phone foldedPhone = new FoldedPhone(new XiaoMi());

        foldedPhone.open();
        foldedPhone.call();
        foldedPhone.close();



        Phone foldedPhone2 = new FoldedPhone(new Vivo());
        foldedPhone2.open();
        foldedPhone2.call();
        foldedPhone2.close();


        Phone uprightPhone = new UpRightPhone(new XiaoMi());
        uprightPhone.open();
        uprightPhone.call();
        uprightPhone.close();

        Phone uprightPhone2 = new UpRightPhone(new Vivo());

        uprightPhone2.open();
        uprightPhone2.call();
        uprightPhone2.close();
    }
}
